<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <%@ include file="/WEB-INF/views/include/head.jsp"%> 
    <link rel="stylesheet" href="${ctxStatic}/css/login.css">
        <script type="text/javascript">
        function forgetPasswordResend(){
             $.post('${ctx}/forgetPassword/forgetPasswordResend?email='+$("#email").val(), "", function(result) {
            }, 'html');
             layer.msg('<spring:message code="forgetPassword_please_check_email"/>', {time:1000});
        }
        </script> 
</head>
<body>
<div class="loginBox forgetBox">
    <div class="clearfix forgetTopBox">
        <!-- 输入邮箱 -->
        <p class="forgetTop"><spring:message code="forgetPassword_input_email"/></p>
        <!-- 确认邮件 -->
        <p class="forgetTop active"><spring:message code="forgetPassword_confirm_email"/></p>
        <!-- 修改密码 -->
        <p class="forgetTop"><spring:message code="forgetPassword_modification_password"/></p>
        <!-- 完成修改 -->
        <p class="forgetTop"><spring:message code="forgetPassword_finish_modification"/></p>
    </div>
    <img src="${ctxStatic}/images/forget_02.png">
    <div class="formBox">
        <input type="hidden" name="email" id="email" value="${user.email}">
        <!-- 修改密码的链接已经发送至您的邮箱xxx@xxx.com，请登录邮箱，点击修改密码链接进行密码修改。如果您没有收到邮件，请点击 -->
        <div class="forget_02_txt">
            <spring:message code="forgetPassword_msg01"/>
            ${user.email}
            <spring:message code="forgetPassword_msg02"/>
            <!-- 再次发送 -->
            <span class="forget_02_btn" onclick="forgetPasswordResend()"><spring:message code="forgetPassword_resend"/></span>
        </div>
    </div>
</div>
<script src="${ctxStatic}/js/jquery-1.9.1.min.js"></script>
<script>
    var windowH = window.innerHeight
            ||document.documentElement.clientHeight
            ||document.body.clientHeight
    $('.loginBox').css('margin-top',windowH/2 - 280);
</script>
</body>
</html>